package com.joysuch.wwyt.risk.bean;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

@Data
@ApiModel(value = "风险点评估")
public class RiskPointEvaluationBusinessBean implements Serializable {

    //风险点库 风险点评估时公用
    @ApiModelProperty("风险点id")
    private Long pointId;
    private String pointName;

    @ApiModelProperty("分析方法id")
    private Long analyzeWayId;

    @ApiModelProperty("评估人员id")
    private List<Long> evaluationUserIds;

    @ApiModelProperty("受控号")
    private String controlNumber;

    @ApiModelProperty("评估日期")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date evaluationDate;

    @ApiModelProperty("是否是风险点库0=否，1=是")
    private Integer shared;

    @ApiModelProperty("item删除Id集合")
    private List<Long> deleteItemIds;

    @ApiModelProperty("detail删除Id集合")
    private List<Long> deleteDetailIds;

    @ApiModelProperty("风险辨识评估集合")
    private List<RiskPointEvaluationItemAddBean> itemList;


    @ApiModelProperty("风险点库评估->风险评估Id / 风险点评估->控制风险评估id")
    private Long pointBusinessId;


    @ApiModelProperty("风险点库评估->风险等级/风险点评估->控制等级")
    private Integer riskLevel;

    //风险点库独有
    @ApiModelProperty("风险点库用:0风险点固有风险评价,1风险点控制风险评价")
    private Integer pointAnalyzeType;

    @ApiModelProperty("复评时：是否是引用评估 0=否 (保存并更新分析库)，1=是（保存当前）")
    private Integer refEval;


    //风险点评估独有
    @ApiModelProperty("固有风险评估Id")
    private Long stablePointBusinessId;

    @ApiModelProperty("评估等级")
    private Integer stableRiskLevel;

    // excel导入 要导入区域评估的责任人和责任单位
    private Long responsibleDepart ;

    private List<Long> responsibleUsers;
}
